import axios from 'axios'

export default class ProjectInfoService {

    //查询所有员工
    list(params){
        return axios.get(`http://localhost/WyhprojectInfos`,{
            params:params
        })
    }

    //获取结算编号
    getMaxCode(){
        return axios.get(`http://localhost/WyhSubSettle/code`)
    }

    //批量添加结算合同
    addLaborSubcontract(subcontracts,tenderPurchaseDetails){
        var a = {}
        a.subcontracts=subcontracts
        a.tenderPurchaseDetails=tenderPurchaseDetails
        return axios.post(`http://localhost/WyhSubSettle`,a)
    }

    //查询所有结算信息
    getSubcontracts(searchSubcontract){
        return axios.get(`http://localhost/WyhSubSettle/list`,{
            params:searchSubcontract
        })
    }

   
}